<script id="list-tpl" type="text/html"
        data-params='{"url":"/education/admin/news","dataName":"newsData","pageid":"#page", "method":"post"}'>
    <table id="example" class="layui-table lay-even" data-name="newsData" data-tplid="list-tpl">
        <thead>
            <tr>
                <th width="30"><input type="checkbox" id="checkall" data-name="checkbox" lay-filter="check"
                                      lay-skin="primary"></th>
                <th>标题</th>
                <th width="150">封面图</th>
                <!--<th >概要</th>-->
                <th width="80">排序</th>
                <th width="170">发布时间</th>
                <th width="200">操作</th>
            </tr>
        </thead>
        <tbody>
            {{# layui.each(d.list, function(index, item){ }}
            <tr>
                <td><input type="checkbox" name="checkbox" value="{{ item.id}}" lay-skin="primary"></td>
                <td>
                    {{# if(item.title == null){ }} {{#  } else { }} {{ item.title}}  {{#  } }}
                </td>
                <td>
                    <img src="/education{{ item.img }}" alt="..." class="img-thumbnail">
                </td>
                <!--<td class="edit" data-list='{"key":"id={{ item.id}}","filed":"address","render":"true"}'
                    data-params='{"url":"/education/admin/news/update/{{ item.id}}"}'>
                    {{# if(item.summary == null){ }} {{#  } else { }} {{ item.summary}}  {{#  } }}
                </td>
-->
                <td><input type="text" class="layui-input ajax-blur" name="ord" value="{{ item.ord}}"
                           data-params='{"url":"/education/admin/news/update/{{ item.id}}","data":""}'> </td>
                <td>{{# if(item.create_time == null){ }} {{#  } else { }} {{ item.create_time}}  {{#  } }}</td>
                <td>
                    <button class="layui-btn layui-btn-mini" onclick="viewDetail('{{item.id}}');">
                        <i class="iconfont">&#xe653;</i>编辑
                    </button>
                    <button class="layui-btn layui-btn-mini layui-btn-danger ajax"
                            data-list='{"key":"id={{ item.id}}","msg":true,"render":"true","action":"del"}'
                            data-params='{"url": "/education/admin/news/delete","data":"ids={{ item.id}}", "method":"post", "confirm":"true"}'>
                        <i class="iconfont">&#xe626;</i>删除
                    </button></td>
                </td>
            </tr>
            {{# }); }}
        </tbody>

    </table>
</script>